﻿using Monti.MVVM;
using Peter.Common;

namespace Peter.Data.Options
{
   /// <summary>
   /// Implementation of the fonts for peter.
   /// </summary>
   public class PeterFonts : ViewModelBase, IFontOptions
   {
      private string m_EditorFontFamily;
      private double m_EditorFontSize;

      public PeterFonts ()
      {
         this.EditorFontFamily = "Courier New";
         this.EditorFontSize = 12.0;
      }

      /// <summary>
      /// Gets the font family for peter editors.
      /// </summary>
      public string EditorFontFamily
      {
         get { return this.m_EditorFontFamily; }
         set
         {
            this.m_EditorFontFamily = value;
            this.RaisePropertyChanged ("EditorFontFamily");
         }
      }

      /// <summary>
      /// Gets the font size for peter editors.
      /// </summary>
      public double EditorFontSize
      {
         get { return this.m_EditorFontSize; }
         set
         {
            this.m_EditorFontSize = value;
            this.RaisePropertyChanged ("EditorFontSize");
         }
      }
   }
}
